package com.yby6.system.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.yby6.system.mapper.SysRoleMenuMapper;
import com.yby6.common.core.domain.SysRoleMenu;
import com.yby6.system.service.SysRoleMenuService;import java.util.List;

/**
 * @program: yangbuyi-rbac
 * @ClassName: SysRoleMenuServiceImpl
 * @create: 2021-05-23 15:21
 * @author: Yang Shuai
 * @since： JDK1.8
 * @SysRoleMenuServiceImpl: ${desc}$
 **/
@Service
public class SysRoleMenuServiceImpl implements SysRoleMenuService {

	@Resource
	private SysRoleMenuMapper sysRoleMenuMapper;

	@Override
	public int updateBatch(List<SysRoleMenu> list) {
		return sysRoleMenuMapper.updateBatch(list);
	}

	@Override
	public int batchInsert(List<SysRoleMenu> list) {
		return sysRoleMenuMapper.batchInsert(list);
	}

	@Override
	public void deleteByMenuId(Long menuId) {
		sysRoleMenuMapper.deleteByMenuId(menuId);
	}
}

